package com.william.jdbcplus.core.dialect.pagination.impl;

import com.william.jdbcplus.core.dialect.pagination.IPagination;
import com.william.jdbcplus.core.toolkit.StringPool;

/**
 * HSQL 数据库分页语句组装实现
 *
 * @author niliwei
 */
public class HSQLPagination implements IPagination {

    @Override
    public String getPaginationSql(String originalSql, long offset, long limit) {
        long offsetParam = offset;
        long limitParam = limit;
        String sql = originalSql + " limit " + limitParam + StringPool.COMMA + offsetParam;
        return sql;
    }
}
